﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using MobileStore.Domain.DataServiceReference;

namespace MobileStore.Domain
{
    public class CommonDomain
    {
        CommonEntities data = new CommonEntities(new Uri(ConfigurationManager.AppSettings["DataServiceUrl"]));

        public Car[] GetCars()
        {
            return data.Cars.OrderBy(c => c.Model).ToArray();
        }
    }
}
